<:!:/>

@file create.html
@author Alejandro Dario Simi
@date $Date: 2014-05-04 01:33:52 +0000 (Sun, 04 May 2014) $

$Id: create.html 111 2014-05-04 01:33:52Z daemonraco@gmail.com $
$URL: http://wcomix.googlecode.com/svn/trunk/skins/Skoll/actions/rule/tare/create.html $

<::/>
<div class="InfoBox">
	<div class="Row">
		<div class="Label"><:TR:/>label_rule<::/></div>
		<div class="Values">
			<a href="?action=<:VAR:/>WC_ACTION_RULE_SHOW<::/>&group=<:VAR:/>GROUP_ID<::/>&rule=<:VAR:/>info_rule_id<::/>">
				<:VAR:/>info_rule_name<::/>
			</a>
		</div>
	</div>
	<div class="Row">
		<div class="Label"><:TR:/>label_actions<::/></div>
		<div class="Values"><:VAR:/>info_rule_count<::/></div>
	</div>
</div>

<form action="#" onsubmit="Skoll.actions.rule.tare.create(this, '<:VAR:/>info_rule_id<::/>')">
	<div class="Title"><:TR:/>label_create_rule_action<::/></div>
	<div class="Help"><:TR:/>help_create_rule_action_tare<::/></div>
	<div class="Fields">
		<div class="Field">
			<div class="Label"><:TR:/>label_action_name<::/></div>
			<div class="Value"><input id="action_name" type="text"/></div>
		</div>
		<div class="Field">
			<div class="Label"><:TR:/>label_action_mode<::/></div>
			<div class="Value">
				<select id="action_mode">
					<option value=""><:TR:/>help_select_mode<::/></option>
					<option value="ALSO" ><:TR:/>label_rule_action_tare_mode_also<::/></option>
					<option value="IF"   ><:TR:/>label_rule_action_tare_mode_if<::/></option>
					<option value="POOL" ><:TR:/>label_rule_action_tare_mode_pool<::/></option>
					<option value="MERGE"><:TR:/>label_rule_action_tare_mode_merge<::/></option>
				</select>
			</div>
		</div>
	</div>
	<div class="Buttons">
		<button><:TR:/>label_create<::/></button>
	</div>
</form>






<:!:/>


<:ISSET:!:var=action-created:/><form class="Formulary" action="<:VAR:/>form-action<::/>" method="post" onsubmit="return TARE_CreateAction(this)">
	<table><tr>
			<td class="Label">Action Name:</td>
			<td class="Value"><input id="ACTION_NAME" name="ACTION_NAME" type="text" class="Full" value=""/></td>
		</tr><tr>
			<td class="Label">Action Type:</td>
			<td class="Value"><select id="ACTION_MODE" name="ACTION_MODE">
					<option value="">Select a TagsRelator mode...</option>
					<option value="ALSO" >ALSO:  Add tags based on another tag</option>
					<option value="IF"   >IF:    Add a tag when other are present</option>
					<option value="POOL" >POOL:  Ensure synonyms presence</option>
					<option value="MERGE">MERGE: Remove synonyms and leave the right one</option>
				</select></td>
		</tr><tr>
			<td colspan="2" class="Buttons">
				<input type="submit" value="Create"/>
			</td>
		</tr></table>
	<script type="text/javascript">
		$("#ACTION_NAME").focus();
	</script>
</form><::/><:ISSET:var=action-created:/><form class="Formulary" action="#" method="get" onsubmit="return false">
	<table><tr>
			<td class="Label">Action Name:</td>
			<td class="Value"><input type="text" value="<:VAR:/>name<::/>" class="Full" disabled="disabled"/></td>
		</tr><tr>
			<td class="Label">Action Type:</td>
			<td class="Value"><select disabled="disabled">
					<option value="">Select a TagsRelator mode...</option>
					<option<:IF:var=mode:value=ALSO:/> selected="selected"<::/>>ALSO:  Add tags based on another tag</option>
					<option<:IF:var=mode:value=IF:/> selected="selected"<::/>>IF:    Add a tag when other are present</option>
					<option<:IF:var=mode:value=POOL:/> selected="selected"<::/>>POOL:  Ensure synonyms presence</option>
					<option<:IF:var=mode:value=MERGE:/> selected="selected"<::/>>MERGE: Remove synonyms and leave the right one</option>
				</select></td>
		</tr><tr>
			<td colspan="2" class="Buttons">
				<input type="button" id="GoToAction" value="Go to action" onclick="document.location.href = '<:VAR:/>visit<::/>';
						return false;"/>
			</td>
		</tr></table>
	<script type="text/javascript">
		$("#GoToAction").focus();
	</script>
</form><::/>
<::/>